using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public class ControlBase : UserControl
{
    public string ControlTitle = string.Empty;

    public ControlBase()
    {
        //
        // TODO: Add constructor logic here
        //
    }

    protected override void LoadViewState(object savedState)
    {
        base.LoadViewState(savedState);
        ControlTitle = ConvertData.ConvertToString(ViewState["ControlTitle"]);
    }

    protected override object SaveViewState()
    {
        ViewState["ControlTitle"] = ControlTitle;
        return base.SaveViewState();
    }


    protected void ClientAssignConfirm(LinkButton lnkAction, string msgAlert)
    {
        msgAlert = msgAlert.Replace("'", "\"");
        lnkAction.Attributes.Add("onclick", "return window.confirm('" + msgAlert + "');");
    }
}

public class PageBase : Page
{
    protected bool IsLogin()
    {
        if (Session[Config.SESSION_USEREMAIL] == null) return false;
        else return true;
    }


    protected void ClientAssignConfirm(LinkButton lnkAction, string msgAlert)
    {
        msgAlert = msgAlert.Replace("'", "\"");
        lnkAction.Attributes.Add("onclick", "return window.confirm('" + msgAlert + "');");
    }
}

public class PageCustomer : PageBase
{
}